<%@page import="bean.VisitDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src='../js/VisitMain.js'></script>
</head>
<body>
<jsp:useBean id="vo" class="bean.VisitVo" scope="page"/> 
<jsp:setProperty property="*" name="vo"/>

<%
VisitDTO dto=new VisitDTO();
dto.setVo(vo);
if(dto.modifyVisit()){
%>
	<script>location.href="guest_main.jsp?inpage=../guest/visitMain.jsp&nowPage="+<%= vo.getNowPage()%>;</script>
<% }else{	out.print("수정오류");%>
	<input type='button' value='목록으로' onclick='gomain()'/>
<%}%>
	
</body>
</html>